package day12;

public class testinteger1 {
    public static void main(String[] args) {
        char c1=new Character('3');
        char c2=new Character('3');
        System.out.println(c1 == c2);
        char c3=Character.valueOf('3');
        char c4=Character.valueOf('3');
        System.out.println();
        Integer i1=Integer.valueOf(555);
        Integer i2=Integer.valueOf(555);
        System.out.println(i1.hashCode());
        System.out.println(i2.hashCode());
        Student s1=new Student("小王",12);
        Student s2=new Student("小王",12);
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1.toString());
        System.out.println(s2.toString());
        String s3="aaa";
        String s4="aaa";
        System.out.println(s3);
        System.out.println(s4);
        String ss="aaa";
        StringBuffer sb=new StringBuffer("bbbbb");
        System.out.println(sb.append(ss));
    }
}
class Student{
    String name;
    int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}